package com.wish.building.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 相册
 * </p>
 *
 * @author 刘郑欣
 * @since 2022-03-27
 */
@TableName("tb_album")
@ApiModel(value = "Album对象", description = "相册")
public class Album implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("楼盘ID")
    private Integer premisesId;

    @ApiModelProperty("图片名称")
    private String name;

    @ApiModelProperty("图片路径")
    private String url;

    @ApiModelProperty("图片类型")
    private Integer albumType;

    @ApiModelProperty("图片状态")
    private Integer status;

    @ApiModelProperty("图片上传时间")
    private LocalDateTime createTime;

    @ApiModelProperty("上传人")
    private Integer createBy;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getPremisesId() {
        return premisesId;
    }

    public void setPremisesId(Integer premisesId) {
        this.premisesId = premisesId;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
    public Integer getAlbumType() {
        return albumType;
    }

    public void setAlbumType(Integer albumType) {
        this.albumType = albumType;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public Integer getCreateBy() {
        return createBy;
    }

    public void setCreateBy(Integer createBy) {
        this.createBy = createBy;
    }

    @Override
    public String toString() {
        return "Album{" +
            "id=" + id +
            ", premisesId=" + premisesId +
            ", name=" + name +
            ", url=" + url +
            ", albumType=" + albumType +
            ", status=" + status +
            ", createTime=" + createTime +
            ", createBy=" + createBy +
        "}";
    }
}
